{extend name="$index_style_layout" /}

<!--SEO相关-->
{block name="head_title"}{$info.title}{/block}
{block name="head_keword"}{$info.keywords?:$info.title}  {$s_info.name} {/block}
{block name="head_description"}{:get_word(del_html($info['content']),200)}{/block}

{block name="body_Headcont"}
<div class="qb_wap_header">
	<div class="L" onclick="Qibo.goBack('{$info.qun?urls('qun/content/show',['id'=>$info['qun']['id'],'my_qid'=>$info['qun']['id']]):urls('index/index')}');"><i class="fa fa-reply"> 返回</i></div>
	{$info.qun?$info['qun']['title']:$s_info.name}
	<div class="R" onclick="window.location.href='{:get_url('member')}'"><i class="fa fa-user-circle-o"> 会员</i></div>
</div>
{/block}

{block name="body_content"}

<!-- 圈子广告 -->
{include file="content/notice" /}

<link rel="stylesheet" href="__STATIC__/bbs/wap_show.css">
<div class="bbsContainer">
	<ul style="height:1px;"></ul>
	<div class="ContentBox" style="position: relative;">
		{eq name="$info.status" value="2"}<div style="position: absolute;left:120px;top:120px;filter: z-index: 1;"><img style="width:80px;opacity:0.1;filter:alpha(opacity=10);" src="__STATIC__/images/recom.png"></div>{/eq}
		<div class="title">
		<!--<a href="{:urls('qun/content/show','id='.$info.ext_id)}"><em>{$info.qun?$info['qun']['title']:$s_info.name}</em></a>-->
		{if $info.qun}
			<em class="gzqun" data-id="{$info.ext_id}">关注</em>
		{elseif($info.fid) /}
			<a href="{:urls('content/index','fid='.$info.fid)}"><em>{$s_info.name}</em></a>
		{/if}
		{gt name="$info.list" value="$timestamp"}<span>顶</span>{/gt}
		{if $info.askmoney>0}<em style="background:{$info.good_reply?'#afaeae':'orange'};">悬赏:{$info.askmoney}元</em>{/if}
		{$info.title} </div>
		<div class="thebase">
			<ul>
				<ol><a href="{:get_url('user',$info['uid'])}"><img style="border-radius:100%;" src="{$info.uid|get_user_icon}" onerror="this.src='__STATIC__/images/nobody.gif'"></a><div><span onclick='KF.chat_win({uid:"{$info.uid}",username:"{$info.uid|get_user_name}",icon:"{$info.uid|get_user_icon}",});'>{$info.uid|get_user_name}</span><em>{if config('webdb.show_pay_money')}消费:{:fun('count@rmb',$info.uid)}{/if} {$info.create_time|format_time=true}  {$info.create_time|format_time="H:i"}</em> </div></ol>
				<li>
					<i class="si si-eye"></i><span>{$info.view}</span> 
					<label onclick="TopicAgree()"><i class="fa fa-thumbs-o-up"></i><span id="topic_agree" class="topic_agree">{$info.agree}</span></label>
					<!--操作菜单-->
					{include file="content/menu"}
				</li>
			</ul>
		</div>
		<div class="contentHtml">
			{$info.content}
			{if $info.mvurl}
				<br>
				{:fun('Player@play',$info.mvurl,'100%',280,$info.mvpic,$autoplay=false,$video_type='auto')}
			{/if}
			{volist name="$info.picurls" id="rs"}
				{php}if(strstr($info['content'],basename($rs['picurl'])))continue;{/php}
				</br><img style="margin-bottom:10px;" src="{$rs.picurl}"/>
			{/volist}
		</div>
	</div>
	{qb:hy name="wap_bbs_show" where="index_style/default/bbs/content/wap_model/topic_givelist,more_fun,post_qun,reply,taglist,footmenu,act" val="datas" type="labelmodel"}
		{$datas}
	{/qb:hy}
</div>



<script type="text/javascript">
var addFavUrl = "{:purl('fav/api/add')}?type={:config('system_dirname')}&id={$id}";	//收藏夹
var PostMsgUrl = "{:murl('member/wxapp.msg/add')}"; //发短消息
var UpImgUrl = "{:urls('index/upfile/images')}";	//上传图片接口 
var UpMvUrl = "{:urls('index/upfile/file')}?fn=end_upfile_mv&ext=mp4&size=20480"; //上传视频接口 最大视频尺寸是20M

//打赏积分
var sys_dirname = "{:config('system_dirname')}";
var give_money_url = "{:purl('givemoney/api/give','index')}";
var count_money_url = "{:purl('givemoney/api/count','index')}";
var getlist_money_url = "{:purl('givemoney/api/getlist','index')}";

var ReplyEditUrl = "{:urls('reply/edit')}";	//修改回复信息
var TopicEditUrl = "{:urls('content/edit')}";	//修改主题信息
var BbsUrl = "{:urls('index/index')}";
var ReplyDeleteUrl = "{:urls('wxapp.reply/delete')}";	//删除回复信息
var TopicDeleteUrl = "{:urls('wxapp.post/delete')}";	//删除主题信息
var ReplyAgreeUrl = "{:urls('wxapp.reply/agree')}"; //回复点赞
var TopicAgreeUrl = "{:urls('wxapp.post/agree',['id'=>$id])}";	//主题点赞
var give_rmb_url = "{:urls('wxapp.post/reward')}";
var login_url = "{:get_url('login')}";
var qunContentShow = "{:urls('qun/content/show')}";
var qun_member_ckjoin = "{:urls('qun/wxapp.member/ckjoin')}";
var qun_member_join = "{:urls('qun/wxapp.member/join')}";
var yz_url = "{:urls('wxapp.api/yz')}?";

var my_uid = "{$userdb.uid}";
var viewContentPassword = "{:urls('wxapp.viewcheck/ckpwd')}";	//输入密码查看内容
var viewContentPaymoney = "{:urls('wxapp.viewcheck/ckmoney')}";	//消费积分才能查看
var give_jifen_listurl= "{:purl('givemoney/api/get_lists')}?sysname={:config('system_dirname')}&id={$id}";	//积分打赏列表
var bind_phone_url = "{:murl('member/yz/mob')}";
var mp_img_url = "{:purl('weixin/bind/index')}?url={:urlencode(get_url('location'))}";//"{:tempdir($webdb.mp_code_img)}";
</script>
<!--表情处理-->
<script src="__STATIC__/js/insert.js"></script>
<script src="__STATIC__/bbs/wap_show.js"></script>

<!-- 微信分享 -->
{php}if(in_weixin()&&empty($info['picurl'])&&$array=fun('content@get_images',$info['content']))$info['picurl']=$array[0]['picurl'];{/php}
{include file="index@share" /}

<!--
微信分享插件里边有这段代码了
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>

<script type="text/javascript">
//小程序分享
wx.miniProgram.getEnv(function (res) { 
	if (res.miniprogram==true) { 
		var info = { 
			title: '{$info.title}',
			picurl: '{$info.picurl}',
			url: "{:get_url(urls('show',['id'=>$id]))}?p_uid={$userdb.uid}",
		}; 
		var json = JSON.stringify(info); 
		wx.miniProgram.postMessage({ 
			data: info, 
		}); 
	} 
}); 
</script>
-->
<!-- 分享海报二维码宣传推广图片 -->
{include file="$haibao" /}
{include file="../../../haibao_style/btn" /}
<!--<div style="position:fixed;right:30px;top:80px;z-index:200;width:30px;font-size:10px;line-height:10px;color:#000;opacity:0.7;"><i id="share_code" onclick="share_btn()" style="font-size:30px;" class="fa fa-qrcode"></i>海报</div>-->


{/block}


{block name="body_Footcont"}{/block}